<?php
class Entry
{
    private $name = null;
    private $text = null;
    private $id = null;
    private $date = null;
    
    public function __construct($id) {
        $this->id = $id;
    }
    
    public function setName($name)
    {
        $this->name = $name;
    }
    
    public function getName()
    {
        return $this->name;
    }

    public function getText()
    {
        return $this->text;
    }
    
    public function setText($text)
    {
        $this->text = $text;
    }
    
    public function getId()
    {
       return $this->id;
    }

    public function setDate($date)
    {
        $this->date = $date;
    }
    
    public function getDate()
    {
        return $this->date;
    }    

    public function getFormattedDate()
    {
        return date("j. M 'y, H:i:s", strtotime($this->getDate()));
    }
}